let a:any = "abc";
a = 123;
a = true;
a = {};
a = [];
a = null;
a = undefined;
a = class{};
console.log(a);

let b:any[] = [];
b.push("abc",123,true,{},[],null,undefined,class{});
console.log(b);

let c:Array<any> = [];
c.push("abc",123,true,{},[],null,undefined,class{});
console.log(c);

class Hd{
    go(){
        console.log("aaa");
    }
}
// 如果hd为any,那它就不是实例化一个Hd了，即使Hd中没有where()也不会报错，编译的时候才报错，所以尽量减少使用any
// const hd:any = new Hd();
// console.log(hd.where());

function sum(a:number,b:number){
    return a+b;
}
// 如果不想让a和b是any类型，打开配置文件中的 "noImplicitAny": true,  会提示报错
console.log(sum(2,1));